package com.wntms.zjy.web;

import com.wntms.zjy.pojo.Result;
import com.wntms.zjy.service.FreightStatusService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xzbz
 * @create 2022-11-28 21:57
 */
@RestController
@RequestMapping("/fsc")
public class FreightStatusController {
    @Autowired
    private FreightStatusService1 freightStatusService1;
    @GetMapping("/{status}")
    public Result findCountByStatus(@PathVariable Integer status){
        int count = freightStatusService1.findCountByStatus(status);
        return Result.success(count,"执行成功");
    }
}
